Contextual Menu Selection Type Constants
NEW WITH CONTEXTUAL MENUS
These constants are returned in theoutUserSelectionType
parameter of the functionContextualMenuSelect
to specify what the user selected from the contextual menu.
enum{ kCMNothingSelected = 0, kCMMenuItemSelected = 1, kCMShowHelpSelected = 3 };Constant descriptions
kCMNothingSelected
- The user did not choose an item from the contextual menu and the application should do no further processing of the event.
kCMMenuItemSelected
- The user chose one of the application's items from the menu. The application can examine the
outMenuID
andoutMenuItem
parameters ofContextualMenuSelect
to see what the menu selection was, and it should then handle the selection appropriately.kCMShowHelpSelected
- The user chose the Help item from the menu. The application should open an Apple Guide database to a section appropriate for the selection. If the application supports some other form of help, it should be presented instead.